#ifndef _CM_IDBMANAGER_H
#define _CM_IDBMANAGER_H

#include "cm_resultcollection.h"
#include <adcm_computer.h>
#include "cm_common.h"

class CM_IDBManager {
public:
	virtual int 
    initialize(const wstring& path) = 0;

	virtual int 
    initialize() = 0;
	
    virtual int 
    drop() = 0;

	virtual int 
    save(ADCM_Computer& computer) = 0;

	virtual int 
    save(int computerId, CM_ResultCollection& collection) = 0;

	virtual int 
    getLastCollection(int computerId, CM_ResultCollection& collection) = 0;

	virtual int 
    getBeforeLastCollection(int computerId, CM_ResultCollection& collection) = 0;
};

#endif  //_CM_IDBMANAGER_H
